package com.atguigu.ssoserver.refactoring.pojo;

public abstract class Price {
    abstract int getPriceCode();
    abstract double getCharge(int daysRented);
    int getFrequentRenterPoints(int daysRented){
        return 1;
    }

//    int getFrequentRenterPoints(int daysRented){
//        if ((getPriceCode()==Movie.NEW_RELEASE) && daysRented>1){
//            return 2;
//        }else {
//            return 1;
//        }
//    }
}
